<template>
  <!-- 用户作品 路由组件 这里就很水 仅做一个展示 -->
  <ul class="mine-work">
    <li class="work-item" v-for="item in 5" :key="item">
      <div class="work-info">
        <div class="work-title">遇见音乐歌手大赛【作品{{ item }}】</div>
        <div class="work-desc">
          <span>{{ 2 * item }}收藏</span>
          <span>{{ 5 * item }}评论</span>
        </div>
      </div>
      <div class="work-img">
        <img
          src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fn.sinaimg.cn%2Fsinakd20200706s%2F616%2Fw700h1516%2F20200706%2Fac3e-ivwfwmp8824061.jpg&refer=http%3A%2F%2Fn.sinaimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1673349151&t=ee387ff560b527dad72c29de7cb0bc70"
          alt=""
        />
      </div>
    </li>
  </ul>
</template>

  <script>
export default {
  name: "MineWork",
};
</script>

  <style lang="less" scoped>
.mine-work {
  height: 5rem;
  overflow: auto;
  .work-item {
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0.1rem;
    padding-bottom: 0.1rem;
    &:last-child {
      padding-bottom: 0.1rem;
    }
    .work-info {
      display: flex;
      flex-direction: column;
      height: 100%;
      margin-right: 1rem;
      // width: 5rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      .work-title {
        width: 100%;
        font-size: 0.3rem;
      }
      .work-desc {
        margin-top: 0.3rem;
        span {
          margin-right: 0.2rem;
        }
      }
    }
    .work-img {
      height: 2rem;
      width: 2rem;
      overflow: hidden;
      border-radius: 0.2rem;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
@media screen and (max-width: 900px) {
  .mine-work {
    .work-img {
      height: 1rem !important;
      width: 1rem !important;
    }
    .work-item {
      .work-info {
        white-space: normal;
        margin-right: 0;
        width: auto;
      }
    }
  }
}
</style>